<?php echo View::factory('admin/sys/sys_left')->render(); ?>
<script type="text/javascript" src="/media/js/my_validation.js"></script>

<div id="do_right" class="catalog_right">
    <div class="box" style="overflow:hidden;">
        <h3 id="h3_left">添加友情链接</h3>
        <div id="right_button"><a href="/admin/flink/list"><button id="back">返回链接列表</button></a></div>
        <div class="clear"></div>
        
        <form method="post" action="/admin/flink/edit/<?php echo $flink->chr_id?>" class="need_validation" id="commentForm"  enctype="multipart/form-data">
            <div id="tabs">
                <ul>
                    <li><a href="#tabs-1">基本资料</a></li>
                </ul>
                <!--START tabs-1 -->
                <div id="tabs-1">
                    <ul>
                        <li>
                            <label for="chr_url" class="lable_title">网址<span class="req">*</span></label>
                            <input name="chr_url" id="chr_url" class="text medium required url" type="text" value="<?php echo $flink->chr_url?>"/>
                        </li>
                        <li>
                            <label for="chr_flinkname" class="lable_title">网站名称<span class="req">*</span></label>
                            <input name="chr_flinkname" id="chr_name" class="text medium required"  value="<?php echo $flink->chr_flinkname?>"/>
                        </li>

                        <li>
                            <label for="chr_order" class="lable_title">排序</label>
                             <input name="chr_order" id="chr_order" class="text number"  value="<?php echo $flink->chr_order?>"/>
                        </li>
                        <li>
                            <label for="chr_email" class="lable_title">站长Email</label>
                            <input name="chr_email" id="chr_email" class="text medium email" type="text" value="<?php echo $flink->chr_email?>"/>
                        </li>
                         <li>
                            <label for="chr_logo" class="lable_title">logo</label>
                             <input name="chr_logo" id="chr_order" class="text"  type="file" value=""/>
                              <?php if(!empty($flink->chr_logo )):?>
                             <img src="<?php echo URL::base().$flink->chr_logo ?>" class="photo">  
                             <?php endif?>
                        </li>
                           <li>
                            <label for="chr_typeid" class="lable_title">网站类型</label>
                            <select name="chr_typeid">
                            <?php echo $option;?>    
                            </select>
                        </li>
                        <li>
                            <label for="chr_content" class="lable_title">网站介绍</label>
                             <textarea name="chr_content" id="chr_content" class="textarea" style="width:700px;height:100px;"><?php echo $flink->chr_content?></textarea>
                        </li>
                     

                    </ul>
                    <div style="clear:both;"></div>
                </div>
                <!--END tabs-1 -->
            </div>
            <ul>
                <li style="text-align: center;">
                    <input value="修 改" class="button" type="submit"/>
                </li>
            </ul>
        </form>
    </div>
</div>
